package org.dongchao.statistics.pojo;

import java.util.List;

import com.alibaba.fastjson.JSON;

/**
 * rest request result object
 * @author dongyazhuo
 */
@lombok.Data
public class RequestResult {

	private String user;
	private Range range;
	private List<Data> data;

	public String outPutLine() {
		String result = "";
		String F = "--------------------------------------我是分隔线--------------------------------------";
		result += user + ":" + JSON.toJSONString(this) + "\r\n";
		result += F;
		result += "\r\n";
		return result;
	}

	@lombok.Data
	public static class Range {
		private Integer start;
		private Integer end;
	}

	@lombok.Data
	public static class Data {
		private String commits;
		private String lines;
		private String dimension;
		private String projectId;
	}
}
